﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sinacor.OMM.ConnectionManager.ErrorHandlers
{
    public class GenericErrorHandler : IErrorHandler
    {
        #region IErrorHandleStrategy Members

        public string HandleError(PSE.Framework.Messaging.Msmq msmq, Exception exception)
        {
            StringBuilder error = new StringBuilder();
            
            error.AppendFormat("Exception Message..: [{0}] {1}", exception.Message, Environment.NewLine);
            error.AppendFormat("StackTrace ........: [{0} {1}", exception.StackTrace, Environment.NewLine);

            return error.ToString();
        }

        #endregion
    }
}
